import { getMethod, postMethod } from '@/utils/request'
interface userParams {
  username: string
  password: string
}
//登录
const login = (params: userParams) => {
  return postMethod('user/login', params)
}
//获取用户信息
const getUserInfo = (params = {}) => {
  return getMethod('user/getInfo', params)
}

// 获取路由信息
const getRoute = (params = {}) => {
  return getMethod('/role/findPrivilegesById', params)
}

//查询区域经理
const queryCharge = (params = {}) => {
  return getMethod('/user/pageQuery', params)
}

//登录
const logout = async () => {}
export { login, getUserInfo, getRoute, queryCharge }
